package enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.omg.CORBA.UNKNOWN;

@Getter
@AllArgsConstructor
/*
* 枚举类描述异常信息
* */
public enum RpcError {
    RPC_ERROR_UNKNOWN_HOST("未知的服务地址"),
    FAIL_TO_CONNECT_SERVICE_REGISTRY("连接服务注册中心失败"),
    FAIL_TO_REGISTER_SERVICE("服务注册失败"),
    SERVICE_NO_FOUND("服务未发现"),

    UNKNOWN_PROTOCOL("不识别的协议包"),
    UNKNOWN_PACKAGE_TYPE("不识别的数据包"),
    UNKNOWN_SERIALIZER("不识别的序列化格式"),
    SERIALIZER_NOT_FOUND("找不到序列化器"),
    SERVICE_SCAN_PACKAGE_NOT_FOUND("服务扫描的包未找到"),
    UNKNOWN_ERROR("未知错误");
    private String message;
}
